package jfdi;

import android.util.JsonReader;

import util.Mlog;

import java.io.IOException;
import java.util.List;

public abstract class Layout {

    protected NodeGroup mNode;
    protected boolean mIsLayedOut;

    public Layout(NodeGroup host) {
        mNode = host;
    }

    public boolean isLayedOut() {
        return mIsLayedOut;
    }

    public abstract int getMinWidth();
    public abstract int getMinHeight();

    public abstract void layout(int l, int t, int r, int b);

    public void setAttribute(NodeHost host, String attr, JsonReader reader)
            throws IOException {
    }

}
